package com.fesine.ch02.AtomicIntegerTest;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/14 10:32
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/14 10:32
 */
public class AddCountThread extends Thread {
    private AtomicInteger count = new AtomicInteger(0);

    @Override
    public void run() {
        for (int i = 0; i < 10000; i++) {

            System.out.println(count.incrementAndGet());
        }
    }
}
